<template>
  <span @click="handleClick">登录</span>
</template>

<script setup>
import { useRouter } from "vue-router";
const router = useRouter();
const handleClick = () => {
  localStorage.setItem("token", "why");
  router.push("/");
};
</script>

<style scoped></style>
